<?php

namespace App\Http\Controllers\Web;

use App\Models\Orders;
use App\Models\Company;
use App\Models\Website;
use Illuminate\Support\Facades\Auth;

class NewsController extends Controller
{

    public function __construct() {

    }
    public function index()
    {
        //dd($_SERVER);
        return view('web.news.list');
    }

    public function manage(){

        return view('web.cert.manage');
    }

    public function order(){

        $users = Orders::where(['id'=>Auth::user()->id])->orWhere(['phone'=>Auth::user()->telphone])->get(); // 查询当前登录用户的信息
        if(!empty($users)){

        }
//       dd($users->toSql());
        return view('web.cert.order');
    }
}
